﻿namespace TA.Turbo.Controls
{
	/// <summary>
	/// Comparison operators for validating a value.
	/// </summary>
	public enum ValidationCompareOperator
	{
		/// <summary>
		/// Equal after converting both sides to text (not type safe).
		/// </summary>
		EqualText = 0,
		/// <summary>
		/// Equal (type safe).
		/// </summary>
		Equal = 11,
		/// <summary>
		/// Value greater than (if negated, less than) first comparison value.
		/// </summary>
		GreaterThan = 13,
		/// <summary>
		/// Value greater than (if negated, less than) or equal to first comparison value.
		/// </summary>
		GreaterThanEqual = 14,
		/// <summary>
		/// Value between (if negated, outside) comparison values (exclusive).
		/// </summary>
		Between = 17,
		/// <summary>
		/// Value between (if negated, outside) comparison values (inclusive).
		/// </summary>
		BetweenOrEqual = 18,
		/// <summary>
		/// Value (which needs to be string) contains first comparison value (also needs to be string).
		/// </summary>
		Contains = 21,
		/// <summary>
		/// Value (which needs to be string) is contained within the first comparison value (also needs to be string).
		/// </summary>
		IsContained = 23,
		/// <summary>
		/// Value is of the specified type.
		/// </summary>
		DataTypeCheck = 31,
	}
}